public class StringArrayIterator implements Iterator {
    String[] args;
    int index = 0;
    public StringArrayIterator(String[] argTemp){
        this.args = argTemp;
    }


    @Override
    public boolean hasnext() {
        if(index < args.length) {
            return true;
        }
        return false;
    }

    @Override
    public Object next() {
        if(this.hasnext()){
            return args[index++];
        }
        return null;
    }
}
